-- GENERATED SPELL FOR [Skullsplitter Headhunter] --


function spell0_781(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(3148,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_781', 20275, 1)
end

function spell1_781(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_781', 2347, 1)
end

function spell2_781(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_781', 500, 1)
end

function Sorts_781(pUnit, Event)
local choix_sorts_781 = math.random(0, 2)
if choix_sorts_781 == 0 then
pUnit:RegisterEvent('spell0_781', 1, 1)
end
if choix_sorts_781 == 1 then
pUnit:RegisterEvent('spell1_781', 1, 1)
end
if choix_sorts_781 == 2 then
pUnit:RegisterEvent('spell2_781', 1, 1)
end
end

function mob781_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_781', math.random(1500, 3000), 1)
end

function mob781_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob781_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob781_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(781, 1, 'mob781_Action')
RegisterUnitEvent(781, 2, 'mob781_Leave')
RegisterUnitEvent(781, 3, 'mob781_Kill')
RegisterUnitEvent(781, 4, 'mob781_Die')
